﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class SingleWindowManager
{
    public static List<IMutexWindow> windowList = new List<IMutexWindow>();

    public static List<IMutexWindow> mutexWindowList = new List<IMutexWindow>();

    public static List<List<IMutexWindow>> pairWindowList = new List<List<IMutexWindow>>()
    {
    };

    public static List<IMutexWindow> mutexShowingWindow = new List<IMutexWindow>();

    public static void HideAll()
    {
        foreach (IMutexWindow win in SingleWindowManager.windowList)
        {
            win.Hide();
        }
    }
        //    if (pairWindowList == null)
        //{
        //    pairWindowList = new List<List<IMutexWindow>>()
        //    {
        //        new List<IMutexWindow>(){CharProp.Instance, Bag.Instance},
        //        new List<IMutexWindow>(){CharProp.Instance, MissionDetail.Instance},
        //    };
        //}
}
